<?php

    // TITLE: listProjectExpense
    // FILE: shared/listProjectExpense.php
    // AUTHOR: des301
    // CREATED: 2015/02/18 11:14:31
    // DESCRIPTION: 
    // REQUIREMENTS: 

?>
<h2>Project Expenses</h2>
<hr>
<table>
    <thead>
	<tr>
	    <th>title</th>
	    <th>description</th>
	    <th>amount</th>
	    <th>when_entered</th>
	    <th>who_entered</th>
	    <th>when_authorized</th>
	    <th>who_authorized</th>
	    <th>type</th>
	</tr>
    </thead>
    <tbody>
    <?php foreach ($fields as $field)  { ?>
	<tr onclick="goto('<?php echo $projectExpense->getId(); ?>');">
	    <td><?php echo $projectExpense->getTitle(); ?></td>
	    <td><?php echo $projectExpense->getDescription(); ?></td>
	    <td><?php echo $projectExpense->getAmount(); ?></td>
	    <td><?php echo $projectExpense->getWhenEntered(); ?></td>
	    <td><?php echo $projectExpense->getWhoEntered(); ?></td>
	    <td><?php echo $projectExpense->getWhenAuthorized(); ?></td>
	    <td><?php echo $projectExpense->getWhoAuthorized(); ?></td>
	    <td><?php echo $projectExpense->getType()->getTitle(); ?></td>
	</tr>
    <?php } ?>
    </tbody>
</table>

